package com.sdr.hkcamera;

import android.content.Context;
import android.view.SurfaceView;
import android.view.View;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.ProgressBar;

/**
 * Created by homelajiang on 2016/10/21 0021.
 */

public class CameraViewHolder {

    public View view;
    public ProgressBar progressBar;
    public ImageView add;
    public ImageView del;
    public SurfaceView surfaceView;
    public ImageView retry;


    public CameraViewHolder(Context context, View view, int tag) {
        this.view = view;
        add = (ImageView) view.findViewById(context.getResources().getIdentifier("add","id",context.getPackageName()));
        del = (ImageView) view.findViewById(context.getResources().getIdentifier("del","id",context.getPackageName()));
        retry = (ImageView) view.findViewById(context.getResources().getIdentifier("retry","id",context.getPackageName()));
        surfaceView = (SurfaceView) view.findViewById(context.getResources().getIdentifier("surfaceView","id",context.getPackageName()));
        progressBar = (ProgressBar) view.findViewById(context.getResources().getIdentifier("progressBar","id",context.getPackageName()));

       this.view.setTag(tag);
        add.setTag(tag);
        del.setTag(tag);
        retry.setTag(tag);
        surfaceView.setTag(tag);
        progressBar.setTag(tag);
    }

}
